package com.cm.stock.manager.dto;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@SuppressWarnings("serial")
@Entity
@Table(name = "client",uniqueConstraints={@UniqueConstraint(columnNames={"code"})})
public class ClientDTO implements Serializable{

	@Id
	@Column(name = "ID", nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	@Column(length=25, nullable=false)
	private String code	;
	private String lastName;
	private String firstName;
	private String phone1;
	private String phone2;
	private String ville;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getVille() {
		return ville;
	}
	public void setVille(String ville) {
		this.ville = ville;
	}
	
	public String getPhone1() {
		return phone1;
	}
	public void setPhone1(String phone1) {
		this.phone1 = phone1;
	}
	public String getPhone2() {
		return phone2;
	}
	public void setPhone2(String phone2) {
		this.phone2 = phone2;
	}
	
	public ClientDTO(String code, String lastName, String firstName,
			String phone1, String phone2, String ville) {
		super();
		this.code = code;
		this.lastName = lastName;
		this.firstName = firstName;
		this.phone1 = phone1;
		this.phone2 = phone2;
		this.ville = ville;
	}
	
	public ClientDTO() {
		super();
	}
	
	

}
